﻿
@{
    ViewBag.Title = Resources.WebStringsWeb.WebTitle;
    Layout = "~/Views/Shared/_LayoutMobile.cshtml";
}

@section css {
    <style>
        .IsException {
            color: red;
        }

        .IsNormal {
            color: blue;
        }

        .mui-bar ~ .mui-content .mui-scroll-wrapper {
            top: 44px;
            height: auto;
        }
    </style>
}
<header class="mui-bar mui-bar-nav">
    <a class="mui-icon mui-icon-left-nav mui-pull-left" href="MMenuBar"></a>
    <h1 class="mui-title" style="color:white;">问题上报台账</h1>
</header>
<div class="mui-content">
    <div id="pullrefresh" class="mui-scroll-wrapper">
        <div class="mui-scroll" id="checklist">
            <ul class="mui-table-view mui-table-view-chevron mui-table-view-striped mui-table-view-condensed" ng-cloak ng-controller="IssueReportController" ng-init="SearchModel={};
                InitDealIssueReport();">
                <li class="mui-table-view-cell" ng-show="IssueReportList.length==0" style="height:150px;text-align:center;">暂无数据</li>
                <li class="mui-table-view-cell" ng-repeat="x in IssueReportList">
                    <a class="mui-navigate-right" href="MMyIssueReportDetail?Id={{x.Id}}">
                        <span class="mui-badge mui-badge-blue">详细</span> 
                        <div class="mui-table mui-slider-handle">
                            <div class="mui-table-cell mui-col-xs-10">
                                <h5 class="mui-ellipsis" ng-class="{'IsException':x.Status==1}">问题：{{x.Description}}</h5>
                                <p class="mui-h6 mui-ellipsis">场所：{{x.PlaceName}}</p>
                                <p class="mui-h6 mui-ellipsis">状态：<span ng-show="x.Status=='1'">未处理</span><span ng-show="x.Status=='2'">处理中</span><span ng-show="x.Status=='3'">已处理</span></p>
                            </div>
                            <div class="mui-table-cell mui-col-xs-2 mui-text-right">
                                <span class="mui-h5">{{x.CheckTime|JSONDate:'MM-dd'}}</span>
                            </div>
                        </div>
                    </a>
                </li>
            </ul>
        </div>
    </div>
</div>
@section js{
    <script src="~/Assets/js/mui.pullToRefresh.js"></script>
    <script src="~/Assets/js/mui.pullToRefresh.material.js"></script>
    <script src="~/Assets/js/pg/IssueReport.js?v=@DateTime.Now.ToString("yyyyMMddHHmm")"></script>

    <script>
        mui.init({
            swipeBack: false,
            keyEventBind: {
                backbutton: false  //关闭back按键监听
            }
        });
                    //mui.showLoading("正在加载..", "div");
                    //setTimeout(function () {
                    //    mui.hideLoading();
                    //}, 2000);


    </script>
}

